package com.example.alarm.ui.receiver;

import com.example.alarm.AlarmApplication;
import com.example.alarm.ui.AlarmActivity;
import com.example.alarm.ui.MainActivity;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BootReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		Intent alarmActivityIntent = new Intent(context, MainActivity.class);
		alarmActivityIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		AlarmApplication.applicationcontext.startActivity(alarmActivityIntent);
	}


}
